import 'package:fish_redux/fish_redux.dart';
import 'package:wowhy/models/admin_user_info.dart';

enum AdminUserEditAction { load, onSave, onReset, onEdit }

class AdminUserEditActionCreator {
  static Action load(AdminUserInfo payload) {
    return Action(AdminUserEditAction.load, payload: payload);
  }

  static Action onSave() {
    return Action(AdminUserEditAction.onSave);
  }

  static Action onReset() {
    return Action(AdminUserEditAction.onReset);
  }

  static Action onEdit() {
    return Action(AdminUserEditAction.onEdit);
  }
}
